import request from '@/axios'
import { SysLoginLogDetailVo, SysLoginLogEditQo, SysLoginLogListVo, SysLoginLogSearchQo } from './types'
import { BaseDeleteQo } from '@/base/api/BaseQo'
import { KeyLabelValueVo } from '@/base/api/KeyLabelValueVo'

export const sysLoginLogPageApi = (data: SysLoginLogSearchQo): Promise<IResponse<Array<SysLoginLogListVo>>> => {
  return request.post({ url: '/sysLoginLog/page.adw', data })
}

export const sysLoginLogDetailApi = (id: number): Promise<IResponse<SysLoginLogDetailVo>> => {
  const data = { id }
  return request.post({
    url: '/sysLoginLog/detail.adw',
    data
  })
}

export const sysLoginLogAddApi = (data: SysLoginLogEditQo): Promise<IResponse<number>> => {
  return request.post({ url: '/sysLoginLog/add.adw', data })
}

export const sysLoginLogUpdateApi = (data: SysLoginLogEditQo): Promise<IResponse<void>> => {
  return request.post({ url: '/sysLoginLog/update.adw', data })
}

export const sysLoginLogDeleteApi = (data: BaseDeleteQo): Promise<IResponse<void>> => {
  return request.post({ url: '/sysLoginLog/delete.adw', data })
}

// [[ OnflowGenerator Range (- selectFunctions -) Start ]]

// [[ OnflowGenerator Range (- selectFunctions -) End ]]
